Repository navigation
Spec pages: as released / corrected <date> under the title, permalinks in the footer - #97
Merged
Merged
Conversation
… spec page build.py resolves, for the content and the data model text of each build, the commit it comes from, its date and the release tag of its version (storage-format-<v>, data-model-<v>), and passes them to Sphinx (SPEC_SOURCE). The content footer of every specification page then says where its text comes from: the file at that commit, the file as released, and a compare link with the changes since the release; a page built from its release tag says "as released". The storage format page, which includes the data model text, names both. Previews from a checkout show its commit (and uncommitted changes); a directory that is no checkout gets no footer line.
… footer The line moves from the content footer to under the byline (or the title, where a page has none), where readers see whether the text is as released or corrected since: a source-read hook in conf.py adds it as a spec-source container after the one of _ext/spec_authors.py.
Under the title: "Storage format 0.4, corrected 16 Nov 2026 · Data model 1.0, corrected 16 Nov 2026" (or "as released"), the date linking to the changes since the release. The commit, branch and release tag of each text, for citing it exactly, go back into the content footer, as plain text.
jan-glx
marked this pull request as ready for review
November 16, 2026 16:09
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Since the release, merged corrections change the published pages of a version (e.g. storage format 0.4, data model 1.0) in place, with nothing on the page saying so. This adds:
Under the title of every specification page, one short muted line saying whether the text is as released or corrected since, the date linking to the changes since the release:
In the footer, for citing the text exactly, the permalinks:
Details:
build.pyresolves commit, date and release tag (storage-format-<v>/data-model-<v>) of the content and of the data model text of each build and passes them asSPEC_SOURCE. Inconf.py, asource-readhook adds the status line as aspec-statuscontainer under the title (above the byline of_ext/spec_authors.py), and_templates/spec-source.htmlrenders the footer lines via the theme'sfooter_content_items.storage-format.mdincludes the data model text, so it names both.data-modelbranch on every version).--source,--data-model-source, the PR preview's.content) show that checkout's commit (and "with local changes" for a dirty working copy); a directory that is not a checkout of its own gets nothing. Non-spec pages (index, contributing, RFCs, implementations) get nothing.contributing.md(Versions and releases) mentions both.Checked: full strict
uv run build.pybuilds all six builds without warnings; rendered and checked in a browser on 0.4, 0.3 and the data model version history;prek run --all-filespasses. CI already checks out withfetch-depth: 0, so the tags are available.